import { createRouter, createWebHashHistory, RouteRecordRaw } from 'vue-router';
import { routers } from './routers';
import { routerGuard } from './guard';

const routes: RouteRecordRaw[] = routers;

const router = createRouter({
  history: createWebHashHistory(),
  routes,
});

router.beforeEach(routerGuard);

export default router;
